#{extends 'main.html' /}
#{set title:'Home' /}

<body>
<h2>
Your Request to contribute List :
 </h2>
#{ifnot reqList}
<p>
You Have No Requests !! 
</p>
#{/ifnot}
#{else}
<table id="dataTable" background = "lightblue"; border="4">
<tr>
<th style="background-color:lightblue;font-family:herculanum;font-size:20px">Request</th>
<th style="background-color:lightblue;font-family:herculanum;font-size:25px">Action</th>

#{list items: reqList, as:'r'}
</tr>'
<td>
<ul><li> <a href=${r.getPath()}> ${r.toString()}</a> </li></ul>
</td>
<td>
<form action="@{Application.confirmRequestToContribute()}" method= "GET">
<div id="${r.id}">
<button  name="okay" type="submit" value="${r.id}">Accept</button>
</div>
<hr>
</form>
</td>
<td>
<div id="${r.id}">
<br>
<form action ="@{Application.rejectRequestToContribute()}" method="GET">
<div id="${r.id}">
<button  name="notokay" type="submit" value="${r.id}">Reject</button>
</form>
</div>
<hr>
</td>
#{/list}
</table>
#{/else}

<a href="@{Application.viewProfile()}">Back to Profile Page</a>

</body>
